<?php

// 本类由系统自动生成，仅供测试用途
class UsermanageAction extends Action {

    public function index() {
        $db = M('user');
        $userList = $db->select();
        $this->assign('userList', $userList);
        $this->display();
    }
    

    public function del() {
        
        $user = M('user');
        if ($user->delete($_GET['userid'])) {
            $this->success('删除成功');
        } else {
            $this->error('删除失败');
        }
    }

}